import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { IonicStorageModule } from '@ionic/storage';

import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { MePage } from '../pages/me/me';
import { LoginPage } from '../pages/login/login';
import { HouseDetailPage } from '../pages/house-detail/house-detail';
import { PersonalPage } from '../pages/personal/personal';
import { SettingPage } from '../pages/setting/setting';
import { TabsPage } from '../pages/tabs/tabs';
import { SearchPage } from '../pages/search/search';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import {RegistPage} from '../pages/regist/regist';
import {OwnerPage} from '../pages/owner/owner';
import {NewsPage} from '../pages/news/news';
import {EvaluationPage} from '../pages/evaluation/evaluation';
import {NewsDetailPage} from '../pages/news-detail/news-detail';
import {FacePage} from '../pages/face/face';
import {OwnerUploadImgPage} from '../pages/owner-upload-img/owner-upload-img';
import {WelcomePage} from '../pages/welcome/welcome';
//personal
import {PersonalOwnerHousesPage} from '../pages/personal-owner-houses/personal-owner-houses';
import {PersonalOwnerToAgreePage} from '../pages/personal-owner-to-agree/personal-owner-to-agree';
import {PersonalOwnerDonePage} from '../pages/personal-owner-done/personal-owner-done';
import {PersonalOwnerAgreedPage} from '../pages/personal-owner-agreed/personal-owner-agreed';
import {PersonalUserAgreedPage} from '../pages/personal-user-agreed/personal-user-agreed';
import {PersonalUserDonePage} from '../pages/personal-user-done/personal-user-done';
import {PersonalUserFocusPage} from '../pages/personal-user-focus/personal-user-focus';
import {PersonalUserToAgreePage} from '../pages/personal-user-to-agree/personal-user-to-agree';


import {MineEditPage} from '../pages/personal/mine-edit/mine-edit';
import {MineEditModalPage} from '../pages/personal/mine-edit-modal/mine-edit-modal';


//pipes

import { ZujinxiaoPipe } from '../pipes/zujinxiao.pipe';
import { MianjixiaoPipe } from '../pipes/mianjixiao.pipe';
import { QuyuPipe } from '../pipes/quyu.pipe';
import { ZujinPipe } from '../pipes/zujin.pipe';
import { MianjiPipe } from '../pipes/mianji.pipe';
import { SearchPipe } from '../pipes/search.pipe';
import { StatusPipe } from '../pipes/status.pipe';

//service

import {HttpClientModule} from '@angular/common/http';

import {UsersService} from '../providers/users.service';
import {HousesService} from '../providers/houses.service';


@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    MePage,
    LoginPage,
    HouseDetailPage,
    PersonalPage,
    SettingPage,
    SearchPage,
    RegistPage,
    OwnerPage,
    NewsPage,
    NewsDetailPage,
    EvaluationPage,
    MineEditPage,
    MineEditModalPage,
    FacePage,
    OwnerUploadImgPage,
    PersonalOwnerHousesPage,
    PersonalOwnerToAgreePage,
    PersonalOwnerDonePage,
    PersonalOwnerAgreedPage,
    PersonalUserAgreedPage,
    PersonalUserDonePage,
    PersonalUserFocusPage,
    PersonalUserToAgreePage,
    WelcomePage,

    SearchPipe,
    ZujinxiaoPipe,
    MianjixiaoPipe,
    QuyuPipe,
    ZujinPipe,
    MianjiPipe,
    StatusPipe
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot(),
    HttpClientModule

  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    MePage,
    LoginPage,
    HouseDetailPage,
    PersonalPage,
    SettingPage,
    SearchPage,
    RegistPage,
    OwnerPage,
    NewsPage,
    FacePage,
    NewsDetailPage,
    EvaluationPage,
    OwnerUploadImgPage,
    PersonalOwnerHousesPage,
    PersonalOwnerToAgreePage,
    PersonalOwnerDonePage,
    PersonalUserAgreedPage,
    PersonalUserDonePage,
    PersonalUserFocusPage,
    PersonalUserToAgreePage,
    WelcomePage,
    PersonalOwnerAgreedPage,
    MineEditPage,
    MineEditModalPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    UsersService,
    HousesService
  ]
})
export class AppModule {}
